/**     
 * @{#} AbstractCommand.java Create on 2011-7-22 下午12:39:01     
 *     
 * Copyright (c) 2011 by xiaofeng.zhouxf     
 */
package com.sefer.memcached.command;

import com.sefer.memcached.connect.Connector;

/**
 * @author <a href="mailto:xiaofeng.zhouxf83@gmail.com">xiaofeng.zhouxf</a>
 * @version 1.0
 */
public abstract class AbstractCommand implements Command {
	protected String key;
	protected String message;
	protected String result;
	protected Connector connector;
	protected int expireTime = 3 * 60 * 60;


	@Override
	public String getKey() {
		return key;
	}

	@Override
	public String getMessage() {
		return message;
	}

	protected AbstractCommand(String key, String message) {
		super();
		this.key = key;
		this.message = message;
	}

	public Connector getConnector() {
		return connector;
	}

	public void setConnector(Connector connector) {
		this.connector = connector;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}
}
